<?php

namespace app\admin\validate;
use think\Validate;
/**
 * 设置模型
 */
class AdminStructure extends Validate{

    protected $rule = [
        'name'      => 'require|unique:admin_structure',
    ];
    protected $message = [
        'name.require' => '部门名称必须填写',
        'name.unique'  => '部门名称不能重复',
    ];
}
